<!DOCTYPE html>
<html>  
<head>
    <include file="Public/title" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <include file="Public/head" />
  </head>
  <body>
    <div class="modal-shiftfix">
      <!-- Navigation -->
      <div class="navbar navbar-fixed-top scroll-hide">
        <div class="container-fluid top-bar">
            <a href=""> </a>
        </div>
       
      </div>
      <div class="container-fluid main-content" style="min-height:560px">
          <div class="col-md-10  col-xs-12 col-sm-10 col-sm-offset-1 col-md-offset-1 col-xs-offset-1"   >
              <h2 style="color: #03c2f9; margin-bottom: 0px;padding-bottom: 0px;"><p class="bg-white" style="margin-bottom: 10px;margin-top: 10px" >课程信息修改</p></h2>
              <h4><p class="bg-info" style="margin-top:0px ;padding:10px" ><a href="{:U('Class/classlist')}" style="color: white">返回&nbsp;</a>/&nbsp;修改</p></h4>

<!--  -->
        <div class="col-md-3  col-xs-12 col-sm-6 col-sm-offset-3 col-md-offset-4 col-xs-offset-2" >
            <form  method="post"  class="form-horizontal" action="{:U(doUpdate)}?id={$classinfos.classid}" enctype="multipart/form-data" onsubmit="return check();" >
            <table id="users" class="table table-responsive">
            <tr>
            <td><input type="hidden"  name="classid" value="{$classinfos.classid}"></td>

            </tr>

            <tr>
            <td style="overflow: hidden;display: block;width: 90px">课程名称：</td>
            <td><input class="form-control" type="text"  name="classname" value="{$classinfos.classname}"></td>
            </tr>

            <tr>
            <td style="overflow: hidden;display: block;width: 90px">课程地点：</td>
            <td><input class="form-control"  name="classplace"  type="text" value="{$classinfos.classplace}"></td>
            </tr>

            <tr>
            <td style="overflow: hidden;display: block;width: 90px">课程简介：</td>
            <td><input class="form-control"  name="classnote" type="text" value="{$classinfos.classnote}"></td>
            </tr>

            <tr>
            <td style="overflow: hidden;display: block;width: 90px">课程价格：</td>
            <td><input class="form-control"  name="classprice" type="text" value="{$classinfos.classprice}"></td>
            </tr>

            <tr>
            <td style="overflow: hidden;display: block;width: 90px">课程须知：</td>
            <td><input class="form-control"  name="classknow" type="text" value="{$classinfos.classknow}"></td>
            </tr>

            </table>  
                <div class="fileupload fileupload-new" data-provides="fileupload">
                   <input type="hidden" value="{$classinfos.classphoto}" name="pic" >
                          <div class="fileupload-new img-thumbnail"
                               style="width: 110px; height: 110px;background-color:#5f5f5f">
                              <img src="__PUBLIC__/Uploads/classphoto/{$classinfos.classphoto}" width="120">
                          </div>
                          <div class="fileupload-preview fileupload-exists img-thumbnail"
                               style="width: 110px; max-height: 110px;"></div>
                          
                      
                    <span class="btn btn-default btn-file">
                        <span class="fileupload-new">选择</span>
                        <span class="fileupload-exists">重选</span>
                        <input type="file" name="file" value="{$userInfos.photo}">
                      </span>
                      <span>
                        <a class="btn btn-default fileupload-exists" data-dismiss="fileupload"
                                  href="#">撤销</a>
                        </span>
                      </div> 
             <tr>
                <td>
                <button class="btn btn-danger" style="width: 120%; margin-top: 20px; text-align:center" type="submit">提交</button>
                </td>
             </tr>
            </form>
             </div>
          </div>
  </body>

</html>